package com.business.sys.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 行业分类表 按照 国民经济行业分类与代码（GB/T 4754-2011）标准 实体类
 * @author chenjiehong
 * @date 2019-10-29 11:46:54
 * @since 1.0
 */
@TableName(value = "sys_classification")
public class Classification extends Model<Classification> {

	private static final long serialVersionUID = 1L;

    // columns START

	@TableId(value = "code",type=IdType.INPUT)
	private String code; 

	/**
	 * 名称
	 */
	private String name; 

	/**
	 * 夫类编码
	 */
	@TableField(value = "parent_code")
	private String parentCode; 

	/**
	 * 状态 1：正常 0：隐藏
	 */
	private Integer status; 

	/**
	 * 说明
	 */
	private String explain; 
	// columns END

	@Override
	protected Serializable pkVal() {
		return code;
	}

	public String getCode() {
		return code;
	}

    public void setCode(String code) {
    	this.code = code;
    }
	public String getName() {
		return name;
	}

    public void setName(String name) {
    	this.name = name;
    }
	public String getParentCode() {
		return parentCode;
	}

    public void setParentCode(String parentCode) {
    	this.parentCode = parentCode;
    }
	public Integer getStatus() {
		return status;
	}

    public void setStatus(Integer status) {
    	this.status = status;
    }
	public String getExplain() {
		return explain;
	}

    public void setExplain(String explain) {
    	this.explain = explain;
    }
	
	@Override
	public String toString() {
		String log = ""; 
		log += "[code:" + getCode() + "]";
		log += "[name:" + getName() + "]";
		log += "[parentCode:" + getParentCode() + "]";
		log += "[status:" + getStatus() + "]";
		log += "[explain:" + getExplain() + "]";
		return log;
	}
}